import request from '@/utils/request.js';


// 查询分类
export function getCategory(data){
	return request.post('/equipment/product/getCategory', data, true)
}


// 查询分类对应属性
export function cateProductParam(data){
	return request.post('/equipment/productCategory/detail', data, true)
}

// 发布商品
export function addProduct(data){
	return request.post('/equipment/product/addProduct', data, true)
}



// 商品详情
export function getProductDetail(data){
	return request.post('/equipment/product/detail', data, true)
}

// 一键估价
export function oneValuation(data){
	return request.post('/equipment/product/oneValuation', data, true)
}

// 查询商品列表
export function getProductList(data){
	return request.get('/equipment/product/list', data, true)
}

// 编辑商品
export function editProduct(data){
	return request.post('/equipment/product/editProduct', data, true)
}

// 删除商品
export function deleteProduct(data){
	return request.post('/equipment/product/deleteProduct', data, true)
}

// 设置运费
export function setPostage(data){
	return request.post('/equipment/product/setPostage', data, true)
}

// 商品改价
export function changePrice(data){
	return request.post('/equipment/product/changePrice', data, true)
}

// 上下架
export function changeStatus(data){
	return request.post('/equipment/product/changeStatus', data, true)
}

// 首页商品分类
export function indexCategory(data){
	return request.post('/equipment/productCategory/indexCategory', data, true)
}

// 根据商品分类获取商品列表
export function getProductByCategory(data){
	return request.post('/equipment/product/getProductByCategory', data, true)
}

// 搜索
export function productSearch(data){
	return request.post('/equipment/product/select', data, true)
}

// 商品详情
export function productDetail(data){
	return request.post('/equipment/product/detail', data, true)
}

// 添加对比设备
export function addProductDiff(data){
	return request.post('/equipment/memberProductDiff/add', data, true)
}

// 对比设备列表
export function productDiffList(data){
	return request.post('/equipment/memberProductDiff/list', data, true)
}

// 对比设备删除
export function deleteProductDiff(data){
	return request.post('/equipment/memberProductDiff/delete', data, true)
}

// 获取对比结果
export function getDiffResult(data){
	return request.post('/equipment/memberProductDiff/getResult', data, true)
}


